package com.kuiandjie.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.kuiandjie.dao.EmpTaskDao;
import com.kuiandjie.entity.EmployeeTask;

public class EmpTaskService {
	EmpTaskDao etd = new EmpTaskDao();
	
	public Map<Integer,String> getEmpTaskMap(String curgid){
		List<EmployeeTask> list = etd.getAll(curgid);
		Map<Integer,String> map = new HashMap<Integer,String>();
		for(EmployeeTask et : list){
			map.put(et.getTaskId(), et.getEmpName());
		}
		return map;
	}

}
